hackerrank python certification answer